<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
    <title>购物车</title>
    <style>
        /* 在这里添加自定义CSS */
        .cart-container {
            max-width: 500px;
            margin: 50px auto;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .cart-header {
            background-color: #5cb85c;
            color: white;
            padding: 10px;
            border-radius: 5px 5px 0 0;
        }

        .cart-body {
            padding: 20px;
            background-color: #f9f9f9;
            border-left: 4px solid #5cb85c;
        }

        .cart-footer {
            text-align: center;
            padding: 10px;
            background-color: #f5f5f5;
            border-radius: 0 0 5px 5px;
        }

        .cart-footer a {
            margin: 0 10px;
        }

        .icon-success {
            font-size: 2em;
            vertical-align: middle;
        }

        .btn {
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
    </style>
</head>
<body>
<%@ include file="header.jsp" %>

<div class="container cart-container">
    <div class="row">
        <div class="col-xs-12">
            <div class="panel cart-header">
                <h3 class="panel-title">购物车提示</h3>
            </div>
            <div class="panel cart-body">
                <h3><span class="fas fa-check-circle icon-success"></span> 添加购物车成功!!</h3>
                <hr>
                <div class="cart-footer">
                    <a href="${pageContext.request.contextPath}/cartShow.do?u_id=${user.userId}"
                       class="btn btn-success">查看购物车</a>
                    <a href="index.jsp" class="btn btn-secondary">继续购物</a>
                </div>
            </div>
        </div>
    </div>
    <hr>
</div>

<%@ include file="footer.jsp" %>
</body>
</html>